package file;

import java.io.File;

public class MkDirDemo {
    public static void main(String[] args) {
        File file =new File("./a/b/c");
      //  File file =new File("./demo");
        if(file.exists()){
            System.out.println("文件已存在");
        }else{
        file.mkdirs();
          //  file.mkdir();
            System.out.println("文件已创建");
        }

    }
}
